<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:owl="http://www.w3.org/2002/07/owl#">
	
<xsl:output method="text" indent="yes" />
<xsl:template match="/tr">
	<xsl:result-document href="cities.txt">
<xsl:for-each select='td/a' >
http://dbpedia.org/resource/<xsl:value-of select="substring-after(@href, 'http://en.wikipedia.org/wiki/')" />
</xsl:for-each>
	</xsl:result-document>

</xsl:template>

</xsl:stylesheet>